<%@page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <title>Document</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <%@include file="/WEB-INF/jsp/header.jsp"%>
    <link rel="stylesheet" href="${ctx}/statics/moban/plugins/layui/css/layui.css" media="all">
    <script src="${ctx}/statics/moban/plugins/layui/layui.js"></script>
    <style>
        .form-group{
            margin-bottom: 8px;
        }

    </style>
</head>
<body>
<div class="container-fluid">
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">条件查询</h3>
        </div>
        <div class="panel-body">
            <form class="form-inline" action="" id="PowerForm">
                <div class="form-group">
                    <label for="">
                        姓名查询:
                    </label>
                    <input type="text" name="woName" class="form-control" />
                </div>
                <div class="form-group">
                    <label for="">
                        登录状态:
                    </label>
                    <select name="woState" id="" style="width: 200px;" class="form-control">
                        <option value="-1">==请选择==</option>
                        <option value="1">禁用</option>
                        <option value="0">启用</option>
                    </select>
                </div>
                <button class="btn btn-success" type="button" onclick="search()">搜索</button>
            </form>
        </div>
    </div>
    <div id="toolbar">
        <blockquote class="layui-elem-quote">
            <button type="button" class="layui-btn layui-btn-small" id="add" onclick="authorize()">
                <i class="layui-icon"></i> 用户授权
            </button>
        </blockquote>
    </div>
    <%--<textarea id="LAY_demo1" class="layui-textarea" style="display: none;"></textarea>
    <script>
        layui.use('layedit', function(){
            var layedit = layui.layedit
                ,$ = layui.jquery;

            //构建一个默认的编辑器
            var index = layedit.build('LAY_demo1')
    </script>--%>




    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->

    <table id="powerTable"
        data-toggle="table"
        data-url="${ctx}/sys/searchHaveLogin"
        data-striped="true"
        data-pagination="true"
        data-side-pagination="server"
        data-page-list="[5,10,15,30]"
        data-smart-display="true"
    >
        <thead>
            <tr>
                <th data-field="woName">姓名</th>
                <th data-field="landPwd">密码</th>
                <th data-field="woEducation">学历</th>
                <th data-field="woSex" data-formatter="optSex">性别</th>
                <th data-field="woBirthday">出生日期</th>
                <th data-field="woIdentityCard">身份证</th>
                <th data-field="woAddress">现住址</th>
                <th data-field="landState" data-formatter="optState">登录状态</th>
                <th data-formatter="optEvent" data-events="optEvents">操作</th>
            </tr>
        </thead>
    </table>
</div>

<div id="eailForm" style="display: none">
    <form class="form-horizontal" action="">
        <div class="layui-form form-group">
            <label for="" class="col-md-2 control-label">
                发送方式:
            </label>
            <div class="form-group col-md-8">
                <input type="checkbox" value="1" id="ema" name="Sendingmode" title="邮箱" lay-skin="primary" checked>
                <input type="checkbox" value="2" name="Sendingmode" title="手机" lay-skin="primary">
                <input type="checkbox" value="3" name="Sendingmode" title="站内" lay-skin="primary">
            </div>
            <p class=" col-md-2" style="line-height: 34px; ">
                <i style="color: red;">*</i>
                <span class="checkSel error" style="color: red;font-size: 12px;"></span>
            </p>
        </div>
        <div class="form-group">
            <label for="" class="col-md-2 control-label">
                主题:
            </label>
            <div class="form-group col-md-8">
                <input type="text" id="theme" name="theme" class="layui-input">
                <input type="hidden" name="woEmail" id="woEmail" />
            </div>
            <p class=" col-md-2" style="line-height: 34px; ">
                <i style="color: red;">*</i>
                <span class="checkSe2 error" style="color: red;font-size: 12px;"></span>
            </p>
        </div>
        <div class="form-group">
            <label for="" class="col-md-2 control-label">
                正文:
            </label>
            <div class="form-group col-md-8">
                <textarea class="layui-textarea" id="LAY_demo1" style="display: none"></textarea>
            </div>
            <p class=" col-md-2" style="line-height: 34px; ">
                <i style="color: red;">*</i>
                <span class="checkSe3 error" style="color: red;font-size: 12px;"></span>
            </p>
        </div>
        <div class="text-right">
            <button class="site-demo-layedit btn btn-primary" type="button" data-type="content1">发送</button>
        </div>
    </form>

    <script>

    </script>

</div>
<div id="authorizeForm" style="display: none">
    <form class="form-horizontal" id="zz" action="">
        <div class="form-group">
            <label for="" class="col-md-2 control-label">
                部门:
            </label>
            <div class="form-group col-md-7">
                <select name="dep" id="dep" onchange="searchNotPwd(this)" class="form-control">
                    <option value="-1">==请选择==</option>
                </select>
            </div>
            <p class=" col-md-3" style="line-height: 34px; ">
                <i style="color: red;">*</i>
                <span class="checkSe4" style="color: red;"></span>
            </p>
        </div>
        <div class="form-group" id="woN">
            <label for="" class="col-md-2 control-label">
                用户名称:
            </label>
            <div class="form-group col-md-7">
                <select name="woName" onchange="woNameChange(this)" id="woName" class="form-control">
                    <option value="-1">==请选择==</option>
                </select>
            </div>
            <p class=" col-md-3" style="line-height: 34px; ">
                <i style="color: red;">*</i>
                <span class="checkSe5" style="color: red;"></span>
            </p>
        </div>
        <div class="form-group">
            <label for="" class="col-md-2 control-label">
                用户密码:
            </label>
            <div class="form-group col-md-7">
                <input type="password" class="form-control" id="landPwd" name="landPwd" />
            </div>
            <p class=" col-md-3" style="line-height: 34px; ">
                <i style="color: red;">*</i>
                <span class="checkSe6" style="color: red;"></span>
            </p>
        </div>
        <div class="form-group">
            <label for="" class="col-md-2 control-label">
                确认密码:
            </label>
            <div class="form-group col-md-7">
                <input type="password" class="form-control" id="landPwd2" />
            </div>
            <p class=" col-md-3" style="line-height: 34px; ">
                <i style="color: red;">*</i>
                <span class="checkSe7" style="color: red;"></span>
            </p>
        </div>
    </form>
</div>
<%@include file="/WEB-INF/jsp/footer.jsp"%>
<script src="${ctx}/res/js/power.js"></script>
</body>
</html>
